<script setup>
// 安装路由：npm install vue-router@4
import {Calendar, Delete, Edit, Message, Search} from "@element-plus/icons-vue";
import {reactive} from "vue";
const data = reactive({
  fruits: ['Apple', 'Pear', 'Orange']
})
// 导入assets包中的图片
import L01 from "./assets/lb01.jpg"
import L02 from "./assets/lb02.jpg"
import L03 from "./assets/lb03.jpg"
const lb=reactive({
  imgs:[L01,L02,L03]
})
const tableData = [
  {
    date: '2016-05-03',
    name: 'Tom',
    address: 'No. 189, Grove St, Los Angeles',
  },
  {
    date: '2016-05-02',
    name: 'Tom',
    address: 'No. 189, Grove St, Los Angeles',
  },
  {
    date: '2016-05-04',
    name: 'Tom',
    address: 'No. 189, Grove St, Los Angeles',
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: 'No. 189, Grove St, Los Angeles',
  },
]

</script>

<template>
  <div>
    <el-button>Default</el-button>
    <el-button type="primary" size="large">Primary</el-button>
    <el-button type="success" circle>Success</el-button>
    <el-button type="info" loading>Info</el-button>
    <el-button type="warning">Warning</el-button>
    <el-button type="danger">Danger</el-button>
  </div>
  <div style="margin: 30px">
    <el-icon :size="90" :color="color">
      <Edit />
    </el-icon>
    <el-icon :size="90" :color="color">
      <Delete />
    </el-icon>
    <el-icon :size="90" :color="color">
      <Message />
    </el-icon>

<!--    结合el-butten使用-->
    <el-button type="primary" :icon="Edit" circle></el-button>
    <el-button type="primary" :icon="Delete" circle></el-button>
  </div>
  <!--    el-input输入框-->
  <div style="margin: 30px">
    <el-input v-model="data.input" style="width: 240px" placeholder="请输入内容"
              :prefix-icon="Search" disabled/>{{data.input}}
    <el-input v-model="data.input" style="width: 240px" placeholder="请输入内容"
              :suffix-icon="Calendar"/>{{data.input}}
    <el-input v-model="data.input" style="width: 240px" placeholder="请输入密码"
              type="password"/>{{data.input}}
    <el-input v-model="data.input" style="width: 240px" placeholder="请输入内容"
              type="textarea" :row="5"/>{{data.input}}
  </div>
  <div style="margin: 30px">
    <el-select v-model="data.fruits" placeholder="请选择">
      <el-option v-for="item in data.fruits" :key="item" :label="item" :value="item"></el-option>
    </el-select>
  </div>
  <div style="margin: 30px">
    <el-carousel height="300px" style="width: 500px">
      <el-carousel-item v-for="item in lb.imgs" :key="item">
        <img :src="item" style="width: 100%">
      </el-carousel-item>
    </el-carousel>
  </div>
  <div style="margin: 30px">
    <el-table :data="tableData" style="width: 100%">
      <el-table-column prop="date" label="Date" width="180" />
      <el-table-column prop="name" label="Name" width="180" />
      <el-table-column prop="address" label="Address" />
    </el-table>
    <el-pagination
        v-model:current-page="currentPage4"
        v-model:page-size="pageSize4"
        :page-sizes="[100, 200, 300, 400]"
        :size="size"
        :disabled="disabled"
        :background="background"
        layout="total, sizes, prev, pager, next, jumper"
        :total="400"
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
    />
  </div>
</template>

<style scoped>

</style>